<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>float</title>
    <style>
        div{
            width: 200px;
            height: 200px;
        }
        .one{
            background-color: orange;
            float: left;
        }
        .two{
            background-color: blue;
            float: right;
            
        }
    </style>
</head>
<body>
    <div class="one"></div>
    <div class="two"></div>
</body>
</html>